//
// Created by Administrator on 2025/4/21.
//
#include "user.h"

my_data_t my_data_global;

/**
 * @description: 标题初始化
 * @return {*}
 */
void title_init(){

    OLED_ShowString(0,0,"alcohol:",16,0);
    OLED_ShowString(0,2,"hydrogen:",16,0);

    OLED_ShowString(115,0,"%",16,0);
    OLED_ShowString(115,2,"%",16,0);
//    OLED_ShowString(0,6,"H_lim:",12,0);
//
//    OLED_ShowString(70,0,"Date:",12,0);
//    OLED_ShowString(70,4,"Time:",12,0);

//    //显示温度阈值
//    OLED_Showdecimal(30,4,123,3,2,12, 0);
//    //显示湿度阈值
//    OLED_Showdecimal(30,6,123,3,2,12, 0);
}

/**
 * @description: 显示浓度信息
 * @return {*}
 */
void show_data(){
    //显示温度阈值
    OLED_Showdecimal(80,0,my_data_global.alcohol,3,1,16, 0);
    //显示湿度阈值
    OLED_Showdecimal(80,2,my_data_global.hydrogen,3,1,16, 0);
}

